import apiRequest from "../common/apiRequest";
// 现场检修作业 - 验收版
/**
 * 根据用户id查询模块列表
 */
const selectModelList = (params) => {
	return apiRequest({
		url: '/txksh/kosinManage/rest/api/autumn/selectModelListCheckVersion',
		method: 'post',
		data: params
	})
}
/**
 * 待领取的、我领取的、待办列表、我完成的、作业监控（包含搜索信息）
 */
const getAutumnInspectionTaskListInfo = (params) => {
	return apiRequest({
		url: '/txksh/kosinManage/rest/api/autumn/getAutumnInspectionTaskListInfo',
		method: 'post',
		data: params
	})
}
/**
 * 待领取的、我领取的、待办列表、我完成的、作业监控（包含搜索信息）
 */
const receiveAutumnInspectionTask = (params) => {
	return apiRequest({
		url: '/txksh/kosinManage/rest/api/autumn/receiveAutumnInspectionTask',
		method: 'post',
		data: params
	})
}

// 任务详情
const getAutumnInspectionTaskDetailsInfo = (params) => {
  return apiRequest({
    url: '/txksh/kosinManage/rest/api/autumn/getAutumnInspectionTaskDetailsInfo',
    method: 'post',
    data: params
  })
}
// 选择人员
export const selectLwOrgList = (params) => {
	return apiRequest({
		url: '/common/api/userinfo/getUserList',
		method: 'post',
		data: params
	})
}
// 录入人员、车辆轨迹
const insertTrackInfo = (params) => {
  return apiRequest({
    url: '/txksh/kosinManage/rest/api/autumn/insertTrackInfo',
    method: 'post',
    data: params
  })
}

export const fileUrl = "192.168.124.67:18001"
// export const fileUrl = "10.0.1.18:18001"
export default {
	selectModelList,
	selectLwOrgList,
	insertTrackInfo,
  getAutumnInspectionTaskListInfo,
	receiveAutumnInspectionTask,
	getAutumnInspectionTaskDetailsInfo,
	fileUrl
}
